package com.swu.pad.comment.service;

import java.util.List;
import java.util.Map;

import com.swu.pad.comment.entity.FbComment;

public interface FbCommentService {
	
	/**
	 * 保存评论
	 * @param comment
	 * @return
	 */
  public FbComment saveComment(FbComment fbComment);
  
  /**
   * 根据作者ID
   * @param authorid
 * @param activityId 
   * @return
   */
  public List<FbComment> FindCommentByAuthorId(String authorid, String activityId);
  
  /**
   * 
   * @param commenerId
 * @param activityId 
   * @return
   */
  public List<FbComment> FindCommentByCommenerId(String commenerId, String activityId);
  
  
  /**
   * 
   * @param type
 * @param activityId 
   * @return
   */
  public List<FbComment> FindCommentByTypeAndUserId(String type,String userid, String activityId);
 
  /**
   * 获取关系图
   * @param activityId
   * @param id
 * @return 
   */
	public List<Map<String, Object>> getRelationship(String activityId, String userId);
}
